package com.xkstream.client.ui;

import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;

import com.xkstream.client.R;
import com.xkstream.client.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by xiaoyi on 2017-11-14.
 */

public class WebActivity extends BaseActivity {
    @BindView(R.id.web)
    WebView webView;
    @Override
    protected void initViews(Bundle savedInstanceState) {
        setContentView(R.layout.activity_web);
        ButterKnife.bind(this);
        String url = getIntent().getStringExtra("url");
        String title = getIntent().getStringExtra("title");
        setTitle(title);

        webView.loadUrl(url);
    }

    @OnClick(R.id.headerBack)
    public void onClick(View view){
        finish();
    }
}
